<!DOCTYPE html>
<html>
<head>
    <#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
    <#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
    <meta charset="utf-8">
    <title>软件问题分析</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .littleTitle{
            margin-left: 16px;
            font-size: 16px;
            color: rgba(96,98,102,1);
            line-height: 48px;
            font-family: Microsoft YaHei;
            font-weight: bold;
        }
    </style>
</head>
<body class="listBody">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <form class="formPreview layui-form"  requrl="${ctx}/qbdms/wQbdSoftwareproAnls/get"
              lay-filter="wQbdSoftwareproAnlsDataForm">
            <div class="qbdms-formTitle">软件问题分析 <i class="qbdms-returnOn closeWindow">返回</i></div>
            <div class="qbdms-formBody">
                <@fillDept.dept id="tbxx"/>
                <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="密级">密级<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label"  title="软件名称">软件名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="softwarename"  placeholder="请输入"  lay-verify="required" lay-reqtext="软件名称是必填项"
                                   autocomplete="off" class="layui-input  textInput"
                                   maxlength="50" fieldname="softwarename">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label"  title="统计期">统计期<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="statmonth"  placeholder="请输入"  lay-verify="required" lay-reqtext="统计期是必填项"
                                   id="month" autocomplete="off" class="layui-input  textInput" readonly
                                   maxlength="50" fieldname="statmonth">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label"  title="问题总数">问题总数<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="problemcount"  placeholder="请输入" lay-verify="required|num" lay-reqtext="问题总数是必填项"
                                   autocomplete="off" class="layui-input  textInput"
                                   maxlength="50" fieldname="problemcount">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label"  title="报送单位">报送单位<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="filldept"  placeholder="请输入"  lay-verify="required" lay-reqtext="报送单位是必填项"
                                   autocomplete="off" class="layui-input  textInput"
                                   maxlength="50" fieldname="filldept" readonly>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div><span class="littleTitle">软件问题</span></div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="文档问题">文档问题</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="docproblem"  class="layui-input  textInput" placeholder="请输入"
                                  maxlength="250" fieldname="docproblem"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="代码问题">代码问题</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproblem"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproblem"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="修改程序">修改程序</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="modifyprogram"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="modifyprogram"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="其他">其他</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="othersoftwarepro"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="othersoftwarepro"/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div><span class="littleTitle">代码问题关键等级</span></div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="关键">关键</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproCrux"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproCrux"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="重要">重要</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproImportant"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproImportant"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="一般">一般</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproGeneral"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproGeneral"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="建议">建议</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproSuggestion"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname=codeproSuggestion""/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div><span class="littleTitle">代码问题分布</span></div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="编程准则违背">编程准则违背</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproBreakrules"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproBreakrules"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="容错与防错">容错与防错</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproErrorproofing"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproErrorproofing"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="接口">接口</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproInterface"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproInterface"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="异步并发">异步并发</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproAsynconcur"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproAsynconcur"/>
                        </div>
                    </div>

                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="时序和时限">时序和时限</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproSequential"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproSequential"/>

                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="计算和算法">计算和算法</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproAlgorithm"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproAlgorithm"/>

                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="初始化和复位">初始化和复位</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproInit"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproInit"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="内存管理">内存管理</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproMemory"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproMemory"/>

                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="其他">其他</label>
                        <div class="layui-input-block qbdms-input">
                        <input type="text"  name="codeproOther"  placeholder="请输入"
                                  autocomplete="off" rows="2" class="layui-input  textInput"
                                  maxlength="250" fieldname="codeproOther"/>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-hide">
                <input type="text" name="id" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="id">
            </div>
            <div class="layui-form-item btnformItem">
                <p>
                    <span id="hideAndShow" style="display: none;">
                        <a lay-submit lay-filter="wQbdComponentscreen" class="layui-btn btn-n privateSubmit qbdms-oneBtn"
                           requrl="${ctx}/qbdms/wQbdSoftwareproAnls/save">提交</a>
                    </span>
                    <button type="reset" id="closeWindow" style="margin-left: 10px;"
                            class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">取消
                    </button>
                </p>
            </div>
        </form>
    </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','common','laydate','jquery','publicMethods','qbdmsForm','propsHandle'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var publicMethods = layui.publicMethods;
        var form=layui.qbdmsForm;
        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }

        var propsHandle = layui.propsHandle;
        var defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle();  // 实例化模板功能部分
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        form.verify({
            num: function (value,item) {
                if (value && ! new RegExp(/^[+]{0,1}(\d+)$/).test(value)) {
                    return common.verifyTitleAdd(item)+'只能输入非负整数';
                }}
        });

        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdSoftwareproAnls/view/list';
        });

        //月度选择
        laydate.render({
            elem: '#month' //指定元素
            , type: 'month'
            , trigger: 'click'
            , value: publicMethods.timeData(new Date()).substring(0,7)
        });

        var runId = "${runId}";
        if (runId == null || runId == '') {
            $("#hideAndShow").show();
        }


        if ('${dept}' != '') {
            $("input[name='filldept']").val('${dept}');
        }

        var common = layui.common;
        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdSoftwareproAnlsDataForm',
            idValue: "${id}",
            primary: "id",
            updateCallback: function (data) {
                if (common.filterRecord(data)) {
                    if ($(".privateSubmit")) {
                        $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
                    }
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
                        layer.close(index);
                        window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdSoftwareproAnls/view/list';
                    });
                } else {
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                }
                return false;
            }
        });
    });
</script>
</body>
</html>